package com.betterjr.modules.accountSupervision.service;

import com.betterjr.common.selectkey.SerialGenerator;
import com.betterjr.common.service.BaseService;
import com.betterjr.mapper.pagehelper.Page;
import com.betterjr.modules.accountSupervision.dao.ScfAccBalMapper;
import com.betterjr.modules.accountSupervision.dao.ScfWarnMapper;
import com.betterjr.modules.accountSupervision.entity.ScfAccBalBean;
import com.betterjr.modules.accountSupervision.entity.ScfWarnBean;
import com.betterjr.modules.accountSupervision.utils.ScfRomoteUtil;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

/**
 * 异常事件
 */
@Service
public class ScfAccBalService extends BaseService<ScfAccBalMapper, ScfAccBalBean> {

    /**
     * 查询余额表
     * @param anMap
     * @return
     */
    public List<ScfAccBalBean> queryAccBalList(Map<String, Object> anMap) {
        return this.mapper.getList(anMap);
    }

    public int toUpdateAccBal(Map<String, Object> anMap){
        return this.mapper.toUpdate(anMap);
    }

    public int addAccBal(Map<String, Object> anMap){
        return this.mapper.addBal(anMap);
    }

}
